package com.relytosoft.mizar.media.analyze.api.entity.behavior;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.relytosoft.dubhe.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * @author a3621
 */
@TableName("AY_EVENT_TYPE")
@ApiModel("AyEventType")
public class AyEventType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", required = true)
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 父ID
     */
    @ApiModelProperty(value = "父ID", required = true)
    @TableField("PARENT_ID")
    private Integer parentId;

    /**
     * 事件名称
     */
    @ApiModelProperty(value = "事件名称")
    @TableField("NAME")
    private String name;

    /**
     * 事件编码
     */
    @ApiModelProperty(value = "事件编码")
    @TableField("CODE")
    private Integer code;

    /**
     * 是否正常  0 否  1是
     */
    @ApiModelProperty(value = "是否正常  0 否  1是")
    @TableField("STATUS")
    private Integer status;

    /**
     * 获得主键
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * 设置主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获得父ID
     */
    public Integer getParentId() {
        return this.parentId;
    }

    /**
     * 设置父ID
     */
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    /**
     * 获得事件名称
     */
    public String getName() {
        return this.name;
    }

    /**
     * 设置事件名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获得事件编码
     */
    public Integer getCode() {
        return this.code;
    }

    /**
     * 设置事件编码
     */
    public void setCode(Integer code) {
        this.code = code;
    }

    /**
     * 获得是否正常  0 否  1是
     */
    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "AyEventType{id=" + id +
                ",parentId=" + parentId +
                ",name=" + name +
                ",code=" + code +
                ",createdId=" + createdId +
                ",createdBy=" + createdBy +
                ",createdTime=" + createdTime +
                ",updatedId=" + updatedId +
                ",updatedBy=" + updatedBy +
                ",updatedTime=" + updatedTime +
                ",status=" + status +
                "}";
    }
}